#include "HUD.h"
#include "Graphics/GraphicsManager.h"

HUD::HUD()
	: Object(),
	m_pScore(nullptr),
	m_pSongName(nullptr)
{

}

HUD::~HUD()
{
}

void HUD::Initialize()
{
	AddComponent(new star::SpriteComponent(_T("HUD/GrayRectangle.png"),_T("Rect")));
	AddComponent(new star::SpriteComponent(_T("HUD/Frame.png"),_T("HUD"), true));
	
	m_pScore = new Score();
	m_pScore->GetTransform()->Translate(34.0f, static_cast<float>(star::GraphicsManager::GetInstance()->GetTargetWindowHeight()) + 3.0f);
	m_pScore->GetTransform()->Scale(0.15f);
	AddChild(m_pScore);

	m_pSongName = new SongName(_T("Toni  Minkkinen  -  Everchanging  squares  of  endless  happiness"));
	m_pSongName->GetTransform()->Scale(0.10f);
	AddChild(m_pSongName);
}
